package com.pic.daoimpl;

import java.io.Serializable;
import java.sql.Timestamp;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.pic.dao.PicDao;
import com.pic.entity.Picture;
import com.pic.entity.SampleInfo;

@Repository("picDao")
public class PicDaoImpl extends BaseDaoImpl<Picture, Serializable> implements
		PicDao {

	public void savePic() {
		Session session = getSessionFactory().getCurrentSession();
		SampleInfo si = new SampleInfo();
		si.setImage("hahha");
		si.setTitle("t");
		si.setName("name132");
		si.setDate(new Timestamp(System.currentTimeMillis()));
		session.save(si);
	}

}
